const {imgUrl} = getApp().globalData
Page({
  data: {
    imgUrl: imgUrl + 'mine/',
    active: 0
  },
  changeIndex(event) {
    const {currentTarget: {dataset: {index}}} = event
    this.setData({
      active: index
    })
  },
  onLoad(options) {
    const eventChannel = this.getOpenerEventChannel();
    eventChannel.on("apply", (data) => {
      let obj = data.data;
      console.log('obj === ', obj)
    });
  },
  onReady() {
  },
  onShow() {
  },
  onHide() {
  },
  onUnload() {
  },
  onShareAppMessage() {
    return {
      title: '',
    };
  },
});